// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import http from './js/api/http'
import Element from 'element-ui'
Vue.config.productionTip = false
import BaiduMap from 'vue-baidu-map'

Vue.use(BaiduMap, {
  /* Visit http://lbsyun.baidu.com/apiconsole/key for details about app key. */
  ak: '8Qua2CCIyny7O7w7hCXctLspF204giIO'
})
//因为这里是入口 ， 所有可以保证所有代码在这里先执行
//css一块打包进最终

// 基于准备好的dom，初始化echarts实例 ,应该用vue 专门的帮你定位元素的机制

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
